package com.mate.cloud.auth.controller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
/**
 *  视图控制器
 * @author:         MI
 * @email:          448341911@qq.com
 * @createTime:     2025/6/5 18:54
 * @updateUser:     MI
 * @updateTime:     2025/6/5 18:54
 * @updateRemark:   修改内容
 * @version:        1.0
 */
@Controller
public class LoginController {


    // 处理GET请求
    @GetMapping("/login")
    public String login() {
        return "login"; // 对应templates/login.html
    }

    // 成功页面
    @RequestMapping("/success")
    public String success() {
        return "success";
    }


    // 失败页面
    @RequestMapping("/fail")
    public String fail() {
        return "fail";
    }
}
